﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="kartrisAttributesData" targetNamespace="http://tempuri.org/kartrisAttributesData.xsd" xmlns:mstns="http://tempuri.org/kartrisAttributesData.xsd" xmlns="http://tempuri.org/kartrisAttributesData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="KartrisSQLConnection" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="KartrisSQLConnection (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.KartrisSQLConnection.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AttributesTblAdpt" GeneratorDataComponentClassName="AttributesTblAdpt" Name="Attributes" UserDataComponentName="AttributesTblAdpt">
            <MainSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL.dbo.spKartrisAttributes_Get" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisAttributes_Get</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Object" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="0" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ATTRIB_ID" DataSetColumn="ATTRIB_ID" />
              <Mapping SourceColumn="ATTRIB_Type" DataSetColumn="ATTRIB_Type" />
              <Mapping SourceColumn="ATTRIB_Live" DataSetColumn="ATTRIB_Live" />
              <Mapping SourceColumn="ATTRIB_FastEntry" DataSetColumn="ATTRIB_FastEntry" />
              <Mapping SourceColumn="ATTRIB_ShowFrontend" DataSetColumn="ATTRIB_ShowFrontend" />
              <Mapping SourceColumn="ATTRIB_ShowSearch" DataSetColumn="ATTRIB_ShowSearch" />
              <Mapping SourceColumn="ATTRIB_OrderByValue" DataSetColumn="ATTRIB_OrderByValue" />
              <Mapping SourceColumn="ATTRIB_Compare" DataSetColumn="ATTRIB_Compare" />
              <Mapping SourceColumn="ATTRIB_Special" DataSetColumn="ATTRIB_Special" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL.dbo.[_spKartrisAttributes_GetByID]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetByAttributeID" GetMethodModifier="Public" GetMethodName="_GetByAttributeID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetByAttributeID" UserSourceName="_GetByAttributeID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisAttributes_GetByID]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AttributeID" Precision="3" ProviderType="Int" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL.dbo.[_spKartrisAttributes_GetByLanguage]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetByLanguage" GetMethodModifier="Public" GetMethodName="_GetByLanguage" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetByLanguage" UserSourceName="_GetByLanguage">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisAttributes_GetByLanguage]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="KartrisSQL.dbo.[_spKartrisAttributes_GetSpecialByProductID]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetSpecialByProductID" GetMethodModifier="Public" GetMethodName="_GetSpecialByProductID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetSpecialByProductID" UserSourceName="_GetSpecialByProductID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisAttributes_GetSpecialByProductID]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@P_ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL.dbo.spKartrisAttributes_GetSummaryByProductID" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="FillSummaryByProductID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetSummaryByProductID" GeneratorSourceName="FillSummaryByProductID" GetMethodModifier="Public" GetMethodName="GetSummaryByProductID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetSummaryByProductID" UserSourceName="FillSummaryByProductID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisAttributes_GetSummaryByProductID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@P_ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AttributeValuesTblAdptr" GeneratorDataComponentClassName="AttributeValuesTblAdptr" Name="AttributeValues" UserDataComponentName="AttributeValuesTblAdptr">
            <MainSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL.dbo.[_spKartrisAttributeValues_GetByProductID]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="false" GeneratorGetMethodName="_GetByProductID" GetMethodModifier="Public" GetMethodName="_GetByProductID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="_GetByProductID" UserSourceName="_GetByProductID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisAttributeValues_GetByProductID]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ATTRIBV_ID" DataSetColumn="ATTRIBV_ID" />
              <Mapping SourceColumn="ATTRIBV_AttributeID" DataSetColumn="ATTRIBV_AttributeID" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="kartrisAttributesData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msdata:EnforceConstraints="False" msprop:Generator_DataSetName="kartrisAttributesData" msprop:Generator_UserDSName="kartrisAttributesData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Attributes" msprop:Generator_UserTableName="Attributes" msprop:Generator_RowEvArgName="AttributesRowChangeEvent" msprop:Generator_TableVarName="tableAttributes" msprop:Generator_TablePropName="Attributes" msprop:Generator_RowDeletingName="AttributesRowDeleting" msprop:Generator_RowChangingName="AttributesRowChanging" msprop:Generator_RowDeletedName="AttributesRowDeleted" msprop:Generator_RowEvHandlerName="AttributesRowChangeEventHandler" msprop:Generator_TableClassName="AttributesDataTable" msprop:Generator_RowChangedName="AttributesRowChanged" msprop:Generator_RowClassName="AttributesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ATTRIB_ID" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnATTRIB_ID" msprop:Generator_ColumnPropNameInRow="ATTRIB_ID" msprop:Generator_ColumnPropNameInTable="ATTRIB_IDColumn" msprop:Generator_UserColumnName="ATTRIB_ID" type="xs:int" minOccurs="0" />
              <xs:element name="ATTRIB_Type" msprop:Generator_ColumnVarNameInTable="columnATTRIB_Type" msprop:Generator_ColumnPropNameInRow="ATTRIB_Type" msprop:Generator_ColumnPropNameInTable="ATTRIB_TypeColumn" msprop:Generator_UserColumnName="ATTRIB_Type" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ATTRIB_Live" msprop:Generator_ColumnVarNameInTable="columnATTRIB_Live" msprop:Generator_ColumnPropNameInRow="ATTRIB_Live" msprop:Generator_ColumnPropNameInTable="ATTRIB_LiveColumn" msprop:Generator_UserColumnName="ATTRIB_Live" type="xs:boolean" minOccurs="0" />
              <xs:element name="ATTRIB_FastEntry" msprop:Generator_ColumnVarNameInTable="columnATTRIB_FastEntry" msprop:Generator_ColumnPropNameInRow="ATTRIB_FastEntry" msprop:Generator_ColumnPropNameInTable="ATTRIB_FastEntryColumn" msprop:Generator_UserColumnName="ATTRIB_FastEntry" type="xs:boolean" minOccurs="0" />
              <xs:element name="ATTRIB_ShowFrontend" msprop:Generator_ColumnVarNameInTable="columnATTRIB_ShowFrontend" msprop:Generator_ColumnPropNameInRow="ATTRIB_ShowFrontend" msprop:Generator_ColumnPropNameInTable="ATTRIB_ShowFrontendColumn" msprop:Generator_UserColumnName="ATTRIB_ShowFrontend" type="xs:boolean" minOccurs="0" />
              <xs:element name="ATTRIB_ShowSearch" msprop:Generator_ColumnVarNameInTable="columnATTRIB_ShowSearch" msprop:Generator_ColumnPropNameInRow="ATTRIB_ShowSearch" msprop:Generator_ColumnPropNameInTable="ATTRIB_ShowSearchColumn" msprop:Generator_UserColumnName="ATTRIB_ShowSearch" type="xs:boolean" minOccurs="0" />
              <xs:element name="ATTRIB_OrderByValue" msprop:Generator_ColumnVarNameInTable="columnATTRIB_OrderByValue" msprop:Generator_ColumnPropNameInRow="ATTRIB_OrderByValue" msprop:Generator_ColumnPropNameInTable="ATTRIB_OrderByValueColumn" msprop:Generator_UserColumnName="ATTRIB_OrderByValue" type="xs:unsignedByte" minOccurs="0" />
              <xs:element name="ATTRIB_Compare" msprop:Generator_ColumnVarNameInTable="columnATTRIB_Compare" msprop:Generator_ColumnPropNameInRow="ATTRIB_Compare" msprop:Generator_ColumnPropNameInTable="ATTRIB_CompareColumn" msprop:Generator_UserColumnName="ATTRIB_Compare" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ATTRIB_Special" msprop:Generator_ColumnVarNameInTable="columnATTRIB_Special" msprop:Generator_ColumnPropNameInRow="ATTRIB_Special" msprop:Generator_ColumnPropNameInTable="ATTRIB_SpecialColumn" msprop:Generator_UserColumnName="ATTRIB_Special" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AttributeValues" msprop:Generator_UserTableName="AttributeValues" msprop:Generator_RowEvArgName="AttributeValuesRowChangeEvent" msprop:Generator_TableVarName="tableAttributeValues" msprop:Generator_TablePropName="AttributeValues" msprop:Generator_RowDeletingName="AttributeValuesRowDeleting" msprop:Generator_RowChangingName="AttributeValuesRowChanging" msprop:Generator_RowDeletedName="AttributeValuesRowDeleted" msprop:Generator_RowEvHandlerName="AttributeValuesRowChangeEventHandler" msprop:Generator_TableClassName="AttributeValuesDataTable" msprop:Generator_RowChangedName="AttributeValuesRowChanged" msprop:Generator_RowClassName="AttributeValuesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ATTRIBV_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnATTRIBV_ID" msprop:Generator_ColumnPropNameInRow="ATTRIBV_ID" msprop:Generator_ColumnPropNameInTable="ATTRIBV_IDColumn" msprop:Generator_UserColumnName="ATTRIBV_ID" type="xs:int" />
              <xs:element name="ATTRIBV_AttributeID" msprop:Generator_ColumnVarNameInTable="columnATTRIBV_AttributeID" msprop:Generator_ColumnPropNameInRow="ATTRIBV_AttributeID" msprop:Generator_ColumnPropNameInTable="ATTRIBV_AttributeIDColumn" msprop:Generator_UserColumnName="ATTRIBV_AttributeID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AttributeValues" />
      <xs:field xpath="mstns:ATTRIBV_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>